﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using PPAP.BO;

namespace PPAP.Web.Part
{
    public partial class SampleCardLog : PageBase
    {
        SampleCardTaskBO tbo = new SampleCardTaskBO();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.QueryString["SID"] != null)
                {
                    DataSet ds = tbo.GetList(" s.sid="+Request.QueryString["SID"].ToString());
                    if (ds.Tables[0].Rows.Count == 0)
                    {
                        DataRow dr = ds.Tables[0].NewRow();
                        dr[3] = "No data";
                        ds.Tables[0].Rows.Add(dr);
                    }
                    GridView1.DataSource = ds;
                    GridView1.DataBind();
                }
            }
        }
    }
}